package chapter16;

/**
 * Created by V5470-I5 on 2016/4/27.
 */
/*import static java.lang.System.out;
import  java.util.Scanner;

public class MessageDAODemo3 {
    public static void main(String[] args) throws Exception {
        MessageDAO3 dao =
                new MessageDAO3(new SimpleConnectionPoolDataSource());
        Scanner console = new Scanner(System.in, "Big5");
        while(true) {
            out.print("(1) 显示留言 (2) 新增留言：");
            switch(Integer.parseInt(console.nextLine())) {
                case 1:
                    dao.get().forEach(message -> {
                        out.printf("%d\t%s\t%s\t%s%n",
                                message.getId(),
                                message.getName(),
                                message.getEmail(),
                                message.getMsg());
                    });
                    break;
                case 2:
                    out.print("姓名：");
                    String name = console.nextLine();
*/